package constants

import (
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"sigs.k8s.io/controller-runtime/pkg/client"
)

const (
	LogsInpodDir = "/var/log/ckelogs"
	PatchLogDir  = "/var/log/patch"
	ScaleLogDir  = "/var/log/ckenodes"
	DownLogDir   = "/var/log/ckenodes"
	AddonsLogDir = "/var/log/addons"

	PatchYamlFile          = "patch.yml"
	ScaleYamlFile          = "scale.yml"
	ComponentScaleYamlFile = "scale-component.yml"
	DownYamlFile           = "scale_down.yml"
	MasterToSlaveYamlFile  = "master_to_slave.yml"

	ScaleRole         = "kube-scale"
	ScaleDownRole     = "scale_down"
	MasterToSlaveRole = "master_to_slave"

	CkeNodeRoleMaster = "master"
	CkeNodeRoleEtcd   = "etcd"
	CkeNodeRoleWorker = "worker"

	CkeFlagAnnotation = "ckenode.inspur.com"
	CkeFlagNone       = "<none>"

	NodeMasterLabel = "node-role.kubernetes.io/master=true"
	NodeWorkerLabel = "node-role.kubernetes.io/node=true"
)

var (
	MountPathDirType = corev1.HostPathDirectoryOrCreate

	background        = metav1.DeletePropagationBackground
	BackGroundDeleted = client.DeleteOptions{PropagationPolicy: &background}
)
